package com.liyiruo.testMain.processor;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 几个后置处理器的测试
 * @author liyiruo
 * @Description
 * @Date 2023/4/20 下午10:34
 */
public class MyBeanPostProcessorTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("processor/beanPostProcessor.xml");
        //bean后置处理器，init之前 和之后
        Object initBean = context.getBean("initBean");
        System.out.println("被修改的bean,helloWorld==>"+initBean);


    }
}
